<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;


?>
<style type="text/css">


</style>

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title">添加房间号</h4>
</div>

<div class="modal-body row">
    <?php $form = ActiveForm::begin([
                                 'options' => ['enctype' => 'multipart/form-data',],
                                 'layout' => 'horizontal',
                                 'fieldConfig' => [
                                    'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
                                    'horizontalCssClasses' => [
                                        'label' => 'col-sm-2',
                                        'wrapper' => 'col-sm-7',
                                        'error' => '',
                                    ],
                                 ],
                            ]); ?>


   
	<div class="form-group">
		<label class="control-label col-sm-2" for="ordercustomer-birthday">房间号</label>
		<div class="col-sm-7">
			<textarea class="form-control" name="code" maxlength="512"></textarea>
			<div class="help-block help-block-error" style="color: red">房间号以 ";" 分割;例如： 1234;234;345...</div>
		</div>
	</div>

	<?= $form->field($model, 'cruise_id')->label(false)->hiddenInput() ?>

    <div class="col-md-12 text-center">
		 <?= Html::submitButton($model->isNewRecord ? '添加' : '确认修改', ['class' =>  'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>


<?php app\components\JsBlock::begin() ?>
<script type="text/javascript">
	

</script>
<?php app\components\JsBlock::end() ?>

